package com.wdm.diffutils.diff;

/**
 * Description:
 *
 * @author wudaiming
 * @date 2023/10/26 12:38
 */
public class SingleDiff implements Diff {
    
    private Object oldValue;
    private Object newValue;
    
    private DiffType type;
    
    public SingleDiff() {
    }
    
    public SingleDiff(Object oldValue, Object newValue) {
        this.oldValue = oldValue;
        this.newValue = newValue;
    }
    
    public Object getOldValue() {
        return oldValue;
    }
    
    public Object getNewValue() {
        return newValue;
    }
    
    @Override
    public DiffType getType() {
        return type;
    }
    
    public void setType(DiffType type) {
        this.type = type;
    }
}
